home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / HYP / H-I / HyperTalkHelp.cpt / HyperTalk Tutorial Sampler 1.1 / card_4849.txt < prev    next >
Text File  |  1989-02-26  |  2KB  |  109 lines

  1. -- card: 4849 from stack: in.1
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 2619
  5. -- name: 
  6.  
  7.  
  8. -- part 1 (button)
  9. -- low flags: 00
  10. -- high flags: 0000
  11. -- rect: left=44 top=26 right=62 bottom=78
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 32462 / 32462
  14. -- text alignment: 1
  15. -- font id: 0
  16. -- text size: 12
  17. -- style flags: 0
  18. -- line height: 16
  19. -- part name: New Button
  20. ----- HyperTalk script -----
  21. on mouseUp
  22.   play "Boing" tempo 120 a
  23.   push card
  24.   visual zoom open
  25.   go to card id 88379 of stack "Help"
  26. end mouseUp
  27.  
  28.  
  29.  
  30. -- part contents for background part 10
  31. ----- text -----
  32. The "visual" command sets up a visual effect to occur when switching between cards (using the "go" 
  33. command).  The word "effect" is optional.
  34.  
  35. The visual effects you can use are:
  36.  
  37. zoom open
  38. zoom close
  39. dissolve
  40. checkerboard
  41. venitian blinds
  42. iris open
  43. iris close
  44. wipe left
  45. wipe right
  46. wipe up
  47. wipe down
  48. barn door open
  49. barn door close
  50. scroll left
  51. scroll right
  52. scroll up
  53. scroll down 
  54.  
  55. You can also add these modifiers AFTER the effect:
  56.  
  57. fast
  58. slow or slowly
  59. very fast
  60. very slow or very slowly
  61.  
  62. Try the Test Button, then change the first visual effect to "iris close".  Test it, then add the word "slowly" after "iris close".
  63.  
  64. You can also add these added effects after the main effect:
  65.  
  66. to black
  67. to gray
  68. to to white
  69. to inverse
  70.  
  71. Now try "iris close slowly to gray".
  72.  
  73. Experiment with the different types of effects to see what they do. 
  74.  
  75. (The "set lockMessages to true/false" commands in the Script Window are needed for this tutorial.  You do not need them when writing your own scripts.) 
  76.  
  77. Click ? to find out more about "Visual".
  78.  
  79. -- part contents for background part 6
  80. ----- text -----
  81. Visual Effect
  82.  
  83. -- part contents for background part 9
  84. ----- text -----
  85. on mouseUp
  86. set lockMessages to true
  87.  
  88.   visual effect  dissolve
  89.   go to prev card
  90.   visual effect wipe right
  91.   go to next card
  92.  
  93. set lockMessages to true
  94. end mouseUp
  95.  
  96.  
  97. -- part contents for background part 13
  98. ----- text -----
  99. on mouseUp
  100. set lockMessages to true
  101.  
  102.   visual effect  dissolve
  103.   go to prev card
  104.   visual effect wipe right
  105.   go to next card
  106.  
  107. set lockMessages to true
  108. end mouseUp
  109.